#!/bin/bash
dladm show-phys
echo "================="
echo "Creating vnics..."
echo "================="
dladm create-vnic -l e1000g0 vphys1
dladm create-vnic -l e1000g0 vphys2
echo "================="
echo "Creating etherstubs..."
echo "================="
dladm create-etherstub webswitch0
dladm create-etherstub dbswitch0
dladm create-vnic -l webswitch0 vweb0
dladm create-vnic -l webswitch0 vweb1
dladm create-vnic -l webswitch0 vweb2
dladm create-vnic -l dbswitch0 vdb0
dladm create-vnic -l dbswitch0 vdb1
dladm create-vnic -l dbswitch0 vdb2
dladm create-vnic -l dbswitch0 vdb3
dladm show-vnic



